<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Record extends Model
{
    protected $table = 'record';

    protected $fillable = [
        'pid',
        'moneys',
        'frequency',
    ];

    public function loans()
    {
        return $this->belongsTo(loan_customer::class, 'pid', 'id');
    }
}
